<template>
	<div>
			<el-form-item v-if="$check_register_field('add','teachers_name','/teacher_users/view')" label="教师姓名" prop="teachers_name">
				<el-input id="teachers_name" v-model="form['teachers_name']" placeholder="请输入教师姓名" ></el-input>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','teacher_gender','/teacher_users/view')" label="教师性别" prop="teacher_gender">
				<el-select id="teacher_gender" v-model="form['teacher_gender']">
			<el-option v-for="o in list_teacher_gender" :key="o" :label="o" :value="o">
			</el-option>
		</el-select>
				</el-form-item>
				<el-form-item v-if="$check_register_field('add','teachers_age','/teacher_users/view')" label="教师年龄" prop="teachers_age">
				<el-input id="teachers_age" v-model="form['teachers_age']" placeholder="请输入教师年龄" ></el-input>
				</el-form-item>
	
	</div>
</template>

<script>
	import mixin from "@/mixins/component.js";

	export default {
		mixins: [mixin],
		props:{

			form:{
				type: Object,
				default: function(){
					return {
							"teachers_name":  '' ,
								"teacher_gender":  '' ,
								"teachers_age":  '' ,
						}
				}
			},

		},
		data() {
			return {
				field: "teacher_users_id",
				url_add: "~/api/teacher_users/add?",
				url_set: "~/api/teacher_users/set?",
				url_upload: "~/api/teacher_users/upload?",

									list_teacher_gender: ['男','女'],
								rules: {
					"teachers_name": [    {required: true,message: '教师姓名不能为空'},  ],
					"teacher_gender": [    {required: true,message: '教师性别不能为空'},  ],
					"teachers_age": [    {required: true,message: '教师年龄不能为空'},  ],
				}

			}
		},
		methods: {
	
	
		
	
		
	
			},
		created() {
								}
	}
</script>
